#ifndef K_TCP_SOCKET_H
#define K_TCP_SOCKET_H
#pragma once

#include "KSocket.h"

class KTcpSocket : public KSocket {
public:
    virtual int protocol() const { return IPPROTO_TCP; }
    virtual int sockType() const { return SOCK_STREAM; }
public:
    SOCKET accept(KIpAddress &addrRemote);
    bool connect(const KIAddress &addrRemote);
    bool listen(int backlog);
};

#endif // K_TCP_SOCKET_H